<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title><h:outputText value="#{index.constant.siteName}" /></title>
</h:head>

<h:body>
	<select gtbfieldid="31" name="parentid" id="parentid">
		<option value="0">无（作为一级栏目）</option>

		<option value="1">网站介绍</option>
		<option value="2">&nbsp;├关于我们</option>
		<option value="3">&nbsp;├联系方式</option>
		<option value="4">&nbsp;├招聘信息</option>
		<option value="5">&nbsp;└版权声明</option>
		<option value="11">新闻</option>
		<option value="12">&nbsp;├国内</option>
		<option value="32">&nbsp;│&nbsp;└撒地方</option>

		<option value="13">&nbsp;└国际</option>
		<option value="14">图片</option>
		<option value="15">&nbsp;├自然风光</option>
		<option value="16">&nbsp;└美食图片</option>
		<option value="17">下载</option>
		<option value="18">&nbsp;├办公软件</option>
		<option value="19">&nbsp;└媒体软件</option>
		<option value="20">信息</option>
		<option value="21">&nbsp;├房屋信息</option>

		<option value="22">&nbsp;└跳蚤市场</option>
		<option value="23">产品</option>
		<option value="24">&nbsp;├数码相机</option>
		<option value="25">&nbsp;└办公设备</option>
	</select>
	<h:form id="input">
		<table>
			<tr>
				<td>父级栏目</td>
				<td><h:selectOneMenu value="#{categoryInput.parentId}">
					<f:selectItems value="#{categoryBean.selectItemList}" var="category">
					</f:selectItems>
				</h:selectOneMenu></td>
			</tr>
			<tr>
				<td>栏目名称</td>
				<td><h:inputText value="#{categoryBean.category.name}"></h:inputText></td>
			</tr>
			<tr>
				<td>栏目介绍</td>
				<td><h:inputText value="#{categoryBean.category.description}"></h:inputText></td>
			</tr>
			<tr>
				<td>META Title（栏目标题）针对搜索引擎设置的标题</td>
				<td><h:inputText value="#{categoryBean.category.metaTitle}"></h:inputText></td>
			</tr>
			<tr>
				<td>META KEYWORDS</td>
				<td><h:inputText value="#{categoryBean.category.metaKeyWords}"></h:inputText></td>
			</tr>
			<tr>
				<td>Meta description</td>
				<td><h:inputText value="#{categoryBean.category.metaDescription}"></h:inputText></td>
			</tr>
			<tr>
				<td colspan="2">
					<h:commandButton id="submitSave" action="#{categoryBean.save}" value="add" rendered="#{ not categoryBean.editModel }"></h:commandButton>
					<h:commandButton id="submitUpdate" action="#{categoryBean.edit2}" value="update" rendered="#{  categoryBean.editModel }"></h:commandButton>
				</td>
			</tr>
		</table>
	</h:form>
</h:body>
</html>